home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inventor Labs: Technology
/
INVENTORLABS_TECHNOLOGY.BIN
/
pc
/
files
/
shared.cst
/
00003_Script_GalleryMgr Parent
< prev
next >
Wrap
Text File
|
1997-07-24
|
2KB
|
76 lines
--o Gallery Controls
-- gGalleryMgr
property pGalleryVOsnd
property pGalleryQTVRobj, pFirstTime
global gSndPath, gQTVRobj
----------------------------------------------------------------------------ò
on mInit me
return ( me )
end mInit
----------------------------------------------------------------------------ò
on mActivate me
-- mUpdate ( gQTVRobj )
set pFirstTime = TRUE
set pGalleryVOsnd = "GEDISON.AIF"
sound playfile 2, gSndPath & pGalleryVOsnd
end mActivate
----------------------------------------------------------------------------ò
on mCheckAudioCue me, QTVRhorz
if (QTVRhorz > 80) and (QTVRhorz < 100) then set sndToplay = "GBELL.AIF"
else if (QTVRhorz > 260) and (QTVRhorz < 285) then set sndToplay = "GWATT.AIF"
else if (QTVRhorz > 350) or (QTVRhorz < 15) then set sndToplay = "GEDISON.AIF"
else set sndToPlay = #none
if (sndToPlay = #none) then
--mLightsOFF( me )
sound stop 2
else if (sndToPlay <> pGalleryVOsnd) then
--mLightsON( me )
set pGalleryVOsnd = sndToplay
sound playfile 2, gSndPath & pGalleryVOsnd
end if
end mCheckAudioCue
----------------------------------------------------------------------------ò
on mOpenQTVR me
set QTVRsprite = 2
-- if the machinetype = 256 then set pGalleryQTVRobj = mInit ( script"PCqtvr Parent",QTVRsprite)
-- else set pGalleryQTVRobj = mInit ( script"MacQTVRParent",QTVRsprite)
set QTVRcords = mGetQTVRProps ( gQTVRobj )
mOpen (pGalleryQTVRobj, "GSQTVR.MOV", QTVRcords,2)
end mOpenQTVR
----------------------------------------------------------------------------ò
on mLightsOFF me
mDeleteFromActorlist (gActorListMgrObj, pGalleryQTVRobj)
mHide( pGalleryQTVRobj)
mAddToActorlist (gActorListMgrObj, gQTVRobj)
mShow( gQTVRobj )
end mLightsOFF
----------------------------------------------------------------------------ò
on mLightsON me
mDeleteFromActorlist (gActorListMgrObj, gQTVRobj)
mHide( gQTVRobj )
mAddToActorlist (gActorListMgrObj, pGalleryQTVRobj)
mShow( pGalleryQTVRobj )
end mLightsON
----------------------------------------------------------------------------ò